package com.qdlc.p2p.dal.dto;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.qdlc.p2p.common.constant.Global;

/**
 * 体验标（允许使用体验金投资的借款标）信息实体
 *
 * @author liya
 * @version 1.1.0.0
 */
@Entity
@Table(name = Global.DB_PREFIX + "additional_experience_borrow")
public class ExperienceBorrow {

    /** 主键 */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /** 借款标 */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "borrow_id")
    private Borrow borrow;

    /** 借款金额 */
    private double account;

    /** 体验券投标最大额度 */
    private double mostExperience;

    /** 单人体验券投标最大额度 */
    private double mostExperienceSingle;

    /**
     * 获取主键
     *
     * @return 主键
     */
    public long getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 要设置的主键
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * 获取借款标
     *
     * @return 借款标
     */
    public Borrow getBorrow() {
        return borrow;
    }

    /**
     * 设置借款标
     *
     * @param borrow 要设置的借款标
     */
    public void setBorrow(Borrow borrow) {
        this.borrow = borrow;
    }

    /**
     * 获取借款金额
     *
     * @return 借款金额
     */
    public double getAccount() {
        return account;
    }

    /**
     * 设置借款金额
     *
     * @param account 要设置的借款金额
     */
    public void setAccount(double account) {
        this.account = account;
    }

    /**
     * 获取可允许体验金投标最大金额
     *
     * @return 可允许体验金投标最大金额
     */
    public double getMostExperience() {
        return mostExperience;
    }

    /**
     * 设置可允许体验金投标最大金额
     *
     * @param mostExperience 要设置的可允许体验金投标最大金额
     */
    public void setMostExperience(double mostExperience) {
        this.mostExperience = mostExperience;
    }

    /**
     * 获取可允许单人体验金投标最大金额
     *
     * @return 可允许单人体验金投标最大金额
     */
    public double getMostExperienceSingle() {
        return mostExperienceSingle;
    }

    /**
     * 设置可允许单人体验金投标最大金额
     *
     * @param mostExperienceSingle 要设置的可允许单人体验金投标最大金额
     */
    public void setMostExperienceSingle(double mostExperienceSingle) {
        this.mostExperienceSingle = mostExperienceSingle;
    }
}


